from xpinyin import Pinyin


# 实例拼音转换对象
p = Pinyin()
# 进行拼音转换
ret = p.get_pinyin(u",,山南,xizang", tone_marks='marks')
ret1 = p.get_pinyin(u",,山南,xizang", '')
print(ret+'\n'+ret1)